package com.chuyu.jzwboa.activity.mailist;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.chuyu.jzwboa.R;
import com.chuyu.jzwboa.base.MVPBaseActivity;
import com.chuyu.jzwboa.presenter.maillist.PersonalMsgPresenter;
import com.chuyu.jzwboa.utils.sys.StatusBarUtils;
import com.chuyu.jzwboa.view.iview.maillist.IPersonalMsgView;
import com.facebook.drawee.view.SimpleDraweeView;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 通讯录----》个人信息
 */
public class PersonalMsgActivity extends MVPBaseActivity<IPersonalMsgView, PersonalMsgPresenter> implements IPersonalMsgView, View.OnClickListener {

	@BindView(R.id.iv_cancel_personal)
	ImageView ivCancelPersonal;
	@BindView(R.id.rl_personalmsg)
	RelativeLayout rlPersonalmsg;
	@BindView(R.id.personal_photo)
	SimpleDraweeView personalPhoto;
	@BindView(R.id.tv_personal_name)
	TextView tvPersonalName;
	@BindView(R.id.iv_personal)
	ImageView ivPersonal;
	@BindView(R.id.tv_personal_job)
	TextView tvPersonalJob;
	@BindView(R.id.rl2)
	RelativeLayout rl2;
	@BindView(R.id.tv_number)
	TextView tvNumber;
	@BindView(R.id.tv_qq)
	TextView tvQq;
	@BindView(R.id.tv_eamil)
	TextView tvEamil;
	@BindView(R.id.ll2)
	LinearLayout ll2;
	@BindView(R.id.tv_work_phone)
	TextView tvWorkPhone;
	@BindView(R.id.tv_adress)
	TextView tvAdress;
	@BindView(R.id.tv_work_adress)
	TextView tvWorkAdress;
	@BindView(R.id.tv_call)
	TextView tvCall;
	@BindView(R.id.tv_sendmsg)
	TextView tvSendmsg;
	private PersonalMsgPresenter personalMsgPresenter;

	@NonNull
	@Override
	public PersonalMsgPresenter createPresenter() {
		personalMsgPresenter = new PersonalMsgPresenter();
		return personalMsgPresenter;
	}

	@Override
	protected int initContent() {
		return R.layout.activity_personal_msg;
	}

	@Override
	protected void initView() {
		ivCancelPersonal.setOnClickListener(this);
	}

	@Override
	protected void initData() {
		/**
		 * 动态设置状态栏高度
		 */
		int statusHeight = StatusBarUtils.getStatusHeight(this);
		rlPersonalmsg.setPadding(0, statusHeight, 0, 0);
		personalPhoto.setImageResource(R.mipmap.ic_launcher_round);
	}

	@Override
	public void showPorgressBar() {

	}

	@Override
	public void closePorfressBar() {

	}

	@Override
	public void LoginSuccess() {

	}

	@Override
	public void LoginFailed() {

	}

	@Override
	public void LoadExpetion() {

	}

	@Override
	public void onClick(View view) {
		switch (view.getId()) {
			case R.id.iv_cancel_personal:
				finish();
				break;
		}
	}

}
